package com.example.xianji.activity;

import com.example.xianji.R;
import com.example.xianji.adapter.product_Adapter.AnimateFirstDisplayListener;
import com.example.xianji.fragment.ChooseDaTingFragment;

import android.os.Bundle;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.view.WindowManager;

/**
 * 选型大厅页面-----产品大厅列表
 *
 * @author me
 */
public class Main_Choose_DaTing_LieBiaoActivity extends FragmentActivity {
    private ChooseDaTingFragment mChooseDaTingFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
        }
        setContentView(R.layout.activity_main__choose__da_ting__lie_biao);

        mChooseDaTingFragment = new ChooseDaTingFragment();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.choose_dating_frame, mChooseDaTingFragment).show(mChooseDaTingFragment).commit();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        AnimateFirstDisplayListener.displayedImages.clear();
    }
}
